let message = prompt("input your message: ");

message == 'Employee' ? alert('Hello') : message == 'Director' ? alert('Greetings') : message == '' ? alert('No login') : alert('');